import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Layouts 1.1
import org.qtproject.qtquick 1.0
import "qrc:/js/resources/Constants.js" as Constant

import "../common"
import "../configure"

Rectangle {
    id: id_waitpage
    width: 480 * m_ratio
    height: 640 * m_ratio

    color: "steelblue"

    property string imageSource: "qrc:/image/resouces/images/drawable-hdpi/replay-"
                                 + ApplicationInfo.dpi
                                 + "/ic_action_refresh.png";

    property real m_ratio : ApplicationInfo.ratio;


    Column {
        id: id_waiting
        spacing: 20 * m_ratio

        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter

        visible: true

        Row {
            WaitingImage {
                id: id_waitingImage
                visible: true;
            }
        }

        Row {
            Text {
                width: parent.width
                y: id_waitingImage.y + id_waitingImage.height + 30 * m_ratio
                text: qsTr("Processing data...");
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
            }
        }
    }

}
